from playwright.sync_api import BrowserContext, Browser

from model.ProConfModel import ProConfModel
from service.BaseService import BaseService
from service.tjyl.detail import get_html_detail


class TjylService(BaseService):
    def __init__(self):
        super().__init__()
    def execute(self, browser: Browser, context:BrowserContext,pro_config: ProConfModel, detail_url: str):

        page = context.new_page()
        print(detail_url)
        return get_html_detail(page,detail_url)